package com.fa4j.system.account.convert;


import com.fa4j.common.base.convert.ConverterConfig;
import com.fa4j.system.account.model.AccountBind;
import com.fa4j.system.account.model.AccountBindCmd;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = ConverterConfig.class)
public interface AccountBindConverter {

    @Mapping(target = "type",source = "loginType")
    AccountBind toEntity(AccountBindCmd cmd);
}
